<%@ page language="java" import="java.util.Date"
	contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
	<head>
		<title>淘助手-智能推广</title>
		<link href="<s:url value='/css/base.css'/>" rel="stylesheet"
			type="text/css" />
		<script type="text/javascript">
            function confirm_update(){
            	alert('xx');
            	setLockDivAttr(window.document, window.document.getElementById("errorDiv"));
				//var versionNo = ${session.session_user_subscribe.code};
			}
            function close_free_order_sub_deal(){
              document.getElementById('closepayiframe').src="http://pay.taobao.com/mysub/subdeal/close_free_order_sub_deal.do?servId=22002721&embedUrl=http://fuwu.taobao.com/proxy.html&idd=<%=new Date().getTime()%>";
              setTimeout(redirect,3000); 
            }
            function redirect(){
				window.location="http://seller.taobao.com/using/app_ins_processor.htm?service_id=4303";
			}
		    function setLockDivAttr(doc, objWindow,width,height) {
			    doc.getElementById("lockDiv").style.display = "block";
			    var tWidth = doc.body.scrollWidth;
			    var tHeight = doc.body.scrollHeight;
			    var lockObj = doc.getElementById("lockDiv");
			    if (doc.body.scrollWidth < doc.body.clientWidth) {
			        tWidth = doc.body.clientWidth;
			    }
			
			    if (doc.body.scrollHeight < doc.body.clientHeight) {
			        tHeight = doc.body.clientHeight;
			    }
			
			    lockObj.style.width = tWidth + "px";
			    lockObj.style.height = tHeight + "px";
			    lockObj.style.minWidth = tWidth + "px";
			    lockObj.style.minHeight = tHeight + "px";        
			
			    // 将弹出层垂直居中
			
			    var objWidth=330;
			    var objHeight=160;
			    if(width!=null){
			        objWidth=width;
			    }
			
			    if(height!=null){
			        objHeight=height;
			    }
			
			    objWindow.style.left = (tWidth - objWidth) / 2  + "px";
			    objWindow.style.top = ((window.screen.availHeight-objHeight)/2+20)+"px";
			    objWindow.style.display = "block";
			}
		</script>
	</head>
	<body>
		<iframe src="" width="1px" height="0.1px" id="closepayiframe"></iframe>
		<div id="lockDiv"
			style="width: 1007px; height: 986px; min-width: 1007px; min-height: 986px; display: none;"></div>
		<div id="errorDiv" class="layer_1" onmousedown="MouseDown(this)"
			onmousemove="MouseMove()" onmouseup="MouseUp()"
			style="opacity: 1; left: 338.5px; top: 304px; display: none;">
			<table width="100%" border="0" cellspacing="0" cellpadding="0"
				height="25" bgcolor="#125ebd">
				<tbody>
					<tr>
						<td style="padding-left: 5px; color: #fff" id="errorDivTitle"
							class="titleDiv">
							系统提示信息
						</td>
						<td width="20" style="padding-right: 2px;">
							<img src="/img/close.gif" alt="关闭"
								onclick="cancelOpera('errorDiv');">
						</td>
					</tr>
				</tbody>
			</table>
			<table width="100%" border="0" cellspacing="5" cellpadding="0"
				style="margin-top: 10px;">
				<tbody>
					<tr>
						<td align="right" width="100">
							<img src="/img/m_error.gif">
						</td>
						<td id="errorDivContent">
							请勾选一个或多个图片再操作！
						</td>
					</tr>
				</tbody>
			</table>
			<table width="100%" border="0" cellspacing="5" cellpadding="0">
				<tbody>
					<tr>
						<td align="center">
							<input type="button" name="button6" id="button6" value=" 确定 "
								class="input_btn" onclick="cancelOpera('errorDiv');">
						</td>
					</tr>
				</tbody>
			</table>
		</div>
		<div id="mid">
			<input type="button" value="确认" onclick="confirm_update()" />
		</div>
		<div id="right">
			<s:action name="notices_snapshot" executeResult="true" flush="true"></s:action>
			<s:action name="faqs_snapshot" executeResult="true" flush="true"></s:action>
		</div>
	</body>
</html>


